<template lang="">
    <div class="D">
        <h1>组件D</h1>
        {{Flag}}
    </div>
</template>
<script lang="ts" setup>
import { type } from 'os';
import Bus from '../Bus'

import {ref} from 'vue'
let Flag = ref(false)
Bus.on('on-click',(flag:boolean)=>{
    Flag.value = flag
})

// type Props = {
//     flag: boolean
// }
// defineProps<Props>()
</script>

<style lang="less">
  .D{
    width:200px;
    height:200px;
    background: red;
    color: aliceblue;
  }  
</style>